import request from '@/utils/request'

// 查询软件池列列表
export function listSoftware(query) {
  return request({
    url: '/system/software/list',
    method: 'get',
    params: query
  })
}

// 查询软件池列详细
export function getSoftware(softwareId) {
  return request({
    url: '/system/software/' + softwareId,
    method: 'get'
  })
}

// 新增软件池列
export function addSoftware(data) {
  return request({
    url: '/system/software',
    method: 'post',
    data: data
  })
}

// 修改软件池列
export function updateSoftware(data) {
  return request({
    url: '/system/software',
    method: 'put',
    data: data
  })
}

// 删除软件池列
export function delSoftware(softwareId) {
  return request({
    url: '/system/software/' + softwareId,
    method: 'delete'
  })
}
